<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<sx:head debug="true"/>
<title>用户管理 - XXX项目管理系统</title>

<link href="../../themes/default/stylesheets/default.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="rootContainer" style="height:600px;width:1000px;border:1px none #000000">
  <%--<div style="clear:both;">
	<span style="font-family:'黑体';font-size:24px;float:left;margin-left:30px;">XXX项目管理系统</span>
    <span style="float:right">欢迎您，XXX | <a href="../../login.html">退出</a></span>  </div>--%>
  <%--<div id="topMenu" style="clear:both;padding-top:20px;">
	动态菜单项：菜单1 | 菜单2 | 菜单2  </div>--%>
  <%--<div id="navPath" style="clear:both;padding-top:10px;">
	<a href="../../home.html">主页</a> -> xxx -> xxx  </div>--%>
  <div style="clear:both;padding-top:10px;">
    <div style="float:left;width:790px;">
<!--      <p><a href="javascript:;" onclick="showModalDialog('${pageContext.request.contextPath}/user_edit_form')">添加用户</a></p>-->
      <p><a href="${pageContext.request.contextPath}/user_edit_form">添加用户</a></p>
      <table width="100%" border="0" cellspacing="2" cellpadding="2">
        <thead>
          <tr bgcolor="#6699FF">
            <th nowrap="nowrap">编号</th>
            <th nowrap="nowrap" bgcolor="#6699FF">用户名（UID）</th>
            <th nowrap="nowrap">姓名</th>
            <th nowrap="nowrap">[操作]</th>
          </tr>
        </thead>
        <tbody>
          <s:if test="users.size > 0">
            <s:iterator value="users">
              <tr bgcolor="#CCCCCC">
                <td>
<!--                <input type="checkbox" name="checkbox" id="checkbox" />-->
                    <!--<input type="radio" name="radio" id="radio" value="radio">-->
                    <s:url action="user_edit_form" id="userEditUrl">
                      <s:param name="userId" value="id" />
                    </s:url>
<!--                    <a href="javascript:;" onclick="showModalDialog('%{userEditUrl}')">-->
						<s:a href="%{userEditUrl}" >
	                      <s:property value="id" />
	                    </s:a>
<!--                    </a>-->                </td>
                <td bgcolor="#CCCCCC"><s:property value="username" /></td>
                <td><s:property value="name" /></td>
                <td>
                	<%--<a href="javascript:;" onclick="showModalDialog('%{userEditUrl}')">编辑</a>--%>
                    <s:a href="javascript:;" onclick="showModalDialog('%{userEditUrl}')">编辑</s:a>
                	&nbsp;&nbsp;
                    <!--重置密码&nbsp;&nbsp;启用/锁定账户-->
                    <s:url action="menuAssignment" id="umenuAssignmentUrl">
                      <s:param name="userId" value="id" />
                    </s:url>
                  	<s:a href="%{umenuAssignmentUrl}">菜单分配</s:a>                 </td>
              </tr>
            </s:iterator>
          </s:if>
        </tbody>
      </table>
    </div>
    <%--<!-- #BeginLibraryItem "/Library/rightNavMenu.lbi" -->
<div id="rightNavMenu" style="float:right; width:200px;">
  <div class="menuItem"><a href="../../Library/home">主页</a></div>
  <div class="menuItem"><a href="javascript:;">系统设置</a></div>
  <div class="menuItem"><a href="../../Library/${pageContext.request.contextPath}/user/menu/load">菜单加载</a></div>
  <div class="menuItem"><a href="../../userManagement.html">用户管理</a></div>
  <div class="menuItem"><a href="../../menuManagement.html">菜单管理</a></div>
  <!--<div class="menuItem"><a href="../permissionManagement.html">权限管理</a></div>-->
  <div class="menuItem"><a href="../../permissionAssign.html">权限分配</a></div>
</div>
<!-- #EndLibraryItem -->--%></div>
</div>
</body>
</html>
